package com.newtouch.cq.security.config.auth;//package cn.com.mcc.cloud.security.com.newtouch.cq.lang.config.auth;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.security.core.userdetails.UsernameNotFoundException;
//import org.springframework.stereotype.Service;
//
//@Service("userDetailService")
//public class UserDetailsServiceImpl implements GenericUserDetailsServiceAdmin {
//
//    @Autowired
//    private SysUserService userService;
////    @Autowired
////    protected SysMenuService sysMenuService;
////    @Autowired
////    protected BaseTokenProperties tokenProperties;
//
//    /**
//     * 通过 Username 加载用户详情
//     *
//     * @param username 用户名
//     * @return UserDetails
//     * @throws UsernameNotFoundException 用户没找到
//     */
//
//    @Override
//    public UserDetailsImpl loadUserByUsername(String username) throws UsernameNotFoundException {
//        UserDetailsImpl user = userService.loadUserByUsername(username);
//        return user;
//    }
//
//}
//
